import { axios } from '@/utils/request'

export function getSysTaskConfigList(params) {
  return axios({
    url: '/sys/taskConfig/pageQueryTaskConfig',
    method: 'get',
    params
  })
}
export function getSysTaskConfigEnableList() {
  return axios({
    url: '/sys/taskConfig/listAllEnabledTaskConfig',
    method: 'get'
  })
}
export function getSysTaskConfigAdd(parameter) {
  return axios({
    url: '/sys/taskConfig/add',
    method: 'post',
    data:parameter
  })
}
export function getSysTaskConfigEdit(parameter) {
  console.log(parameter)
  return axios({
    url: '/sys/taskConfig/update',
    method: 'post',
    data:parameter
  })
}
export function setSysTaskConfigEnable(parameter) {
  return axios({
    url: '/sys/taskConfig/disOrEnable',
    method: 'post',
    data:parameter
  })
}
